package com.changgou.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author: zhengke
 * @date: 2020/12/18
 * @return:
 * @description:
 */
@SpringBootApplication
@EnableEurekaClient  //表明是一个eureka客户端
@EnableFeignClients(basePackages = "com.changgou.goods.feign")
//feign的调用  搜索微服务要调用商品微服务，所以要开启feign调用的支持
public class SearchApplication {
    public static void main(String[] args) {

        SpringApplication.run(SearchApplication.class,args);
    }
}
